package com.gitee.melin.bee.core.jdbc.relational;

import java.io.Serializable;
import lombok.Data;

@Data
public class MetaFunction implements Serializable {

    private String funcDatabase;

    private String funcSchema;

    private String funcName;

    private String funcType;

    private String comment;

    @Override
    public String toString() {
        if (funcDatabase != null && funcSchema != null) {
            return funcDatabase + "." + funcSchema + "." + funcName;
        } else if (funcSchema != null) {
            return funcSchema + "." + funcName;
        } else {
            return funcName;
        }
    }
}
